package top.csjss.hospital.entity;

import java.io.Serializable;

/**
 * doctor
 * @author 
 */
public class Doctor implements Serializable {
    /**
     * 医生id
     */
    private Integer doctorId;

    /**
     * 医生名称
     */
    private String doctorName;

    /**
     * 科室id
     */
    private Integer departmentId;

    /**
     * 挂号类型
     */
    private Integer registeredId;

    /**
     * 0 - 门诊部 ， 1 - 住院部
     */
    private Integer dstate;

    /**
     * 上午工作开始时间
     */
    private String amStartTime;

    /**
     * 上午工作结束时间
     */
    private String amEndTime;

    /**
     * 下午工作开始时间
     */
    private String pmStartTime;

    /**
     * 下午工作结束时间
     */
    private String pmEndTime;

    private static final long serialVersionUID = 1L;

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public Integer getRegisteredId() {
        return registeredId;
    }

    public void setRegisteredId(Integer registeredId) {
        this.registeredId = registeredId;
    }

    public Integer getDstate() {
        return dstate;
    }

    public void setDstate(Integer dstate) {
        this.dstate = dstate;
    }

    public String getAmStartTime() {
        return amStartTime;
    }

    public void setAmStartTime(String amStartTime) {
        this.amStartTime = amStartTime;
    }

    public String getAmEndTime() {
        return amEndTime;
    }

    public void setAmEndTime(String amEndTime) {
        this.amEndTime = amEndTime;
    }

    public String getPmStartTime() {
        return pmStartTime;
    }

    public void setPmStartTime(String pmStartTime) {
        this.pmStartTime = pmStartTime;
    }

    public String getPmEndTime() {
        return pmEndTime;
    }

    public void setPmEndTime(String pmEndTime) {
        this.pmEndTime = pmEndTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Doctor other = (Doctor) that;
        return (this.getDoctorId() == null ? other.getDoctorId() == null : this.getDoctorId().equals(other.getDoctorId()))
            && (this.getDoctorName() == null ? other.getDoctorName() == null : this.getDoctorName().equals(other.getDoctorName()))
            && (this.getDepartmentId() == null ? other.getDepartmentId() == null : this.getDepartmentId().equals(other.getDepartmentId()))
            && (this.getRegisteredId() == null ? other.getRegisteredId() == null : this.getRegisteredId().equals(other.getRegisteredId()))
            && (this.getDstate() == null ? other.getDstate() == null : this.getDstate().equals(other.getDstate()))
            && (this.getAmStartTime() == null ? other.getAmStartTime() == null : this.getAmStartTime().equals(other.getAmStartTime()))
            && (this.getAmEndTime() == null ? other.getAmEndTime() == null : this.getAmEndTime().equals(other.getAmEndTime()))
            && (this.getPmStartTime() == null ? other.getPmStartTime() == null : this.getPmStartTime().equals(other.getPmStartTime()))
            && (this.getPmEndTime() == null ? other.getPmEndTime() == null : this.getPmEndTime().equals(other.getPmEndTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDoctorId() == null) ? 0 : getDoctorId().hashCode());
        result = prime * result + ((getDoctorName() == null) ? 0 : getDoctorName().hashCode());
        result = prime * result + ((getDepartmentId() == null) ? 0 : getDepartmentId().hashCode());
        result = prime * result + ((getRegisteredId() == null) ? 0 : getRegisteredId().hashCode());
        result = prime * result + ((getDstate() == null) ? 0 : getDstate().hashCode());
        result = prime * result + ((getAmStartTime() == null) ? 0 : getAmStartTime().hashCode());
        result = prime * result + ((getAmEndTime() == null) ? 0 : getAmEndTime().hashCode());
        result = prime * result + ((getPmStartTime() == null) ? 0 : getPmStartTime().hashCode());
        result = prime * result + ((getPmEndTime() == null) ? 0 : getPmEndTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", doctorId=").append(doctorId);
        sb.append(", doctorName=").append(doctorName);
        sb.append(", departmentId=").append(departmentId);
        sb.append(", registeredId=").append(registeredId);
        sb.append(", dstate=").append(dstate);
        sb.append(", amStartTime=").append(amStartTime);
        sb.append(", amEndTime=").append(amEndTime);
        sb.append(", pmStartTime=").append(pmStartTime);
        sb.append(", pmEndTime=").append(pmEndTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}